<?php

namespace Modules\Admin\Model\Service\Wechat;

use Base\Exception\Service as Exception;
use Modules\Wechat\Model\Data\OfficialAccount\Handling;

/**
 * 微信模块公众号相关业务
 *
 * @package Modules\Admin\Model\Service\Wechat
 */
class OfficialAccount
{

    public function setHandlingAccount($account)
    {
        if (empty($account)) {
            throw new Exception('error.admin_wechat.handling_account_empty');
        }
        return Handling::set($account, 0);
    }

    public function getHandlingAccount()
    {
        return Handling::get();
    }
}